<template>
  <div>
    <h2 class="title">{{$t('我的账户')}}</h2>
    <div>
      <div class="account-line">
        <span class="account-line-name">{{$t('昵称')}}</span>
        <p>
          <span class="account-line-value"> 155****1659</span>
        </p>
      </div>
      <div class="account-line">
        <span class="account-line-name">ID：</span>
        <p>
          <span class="account-line-value">24221</span>
        </p>
      </div>
      <div class="account-line">
        <span class="account-line-name">{{$t('手机号')}}：</span>
        <p class="account-line-right">
          <span class="account-line-value">155****1659</span>
          <span>{{$t('修改')}}</span>
        </p>
      </div>
      <div class="account-line">
        <span class="account-line-name">{{$t('登录密码')}}：</span>
        <p class="account-line-right">
          <span class="account-line-value">******</span>
          <span>{{$t('修改')}}</span>
        </p>
      </div>

      <Button type="error" class="logout-btn" @click="signOut">{{$t('退出登录')}}</Button>
    </div>
  </div>
</template>

<script>
import store from "@/vuex/store";
import { mapState, mapActions } from "vuex";
export default {
  name: "MyAccount",
  data() {
    return {
      comName: "",
      theme: "light",
      menuList: [
        {
          name: "账户管理",
          type: "accountManage",
          componentType: "",
          method: "",
        },
        {
          name: "我的订单",
          type: "accountManage",
          componentType: "",
          method: "",
        },
        {
          name: "售后/退款",
          type: "accountManage",
          componentType: "",
          method: "",
        },
        {
          name: "我的余额",
          type: "accountManage",
          componentType: "",
          method: "",
        },
        {
          name: "我的积分",
          type: "accountManage",
          componentType: "",
          method: "",
        },
        {
          name: "我的收藏",
          type: "accountManage",
          componentType: "",
          method: "",
        },
        {
          name: "地址管理",
          type: "accountManage",
          componentType: "",
          method: "",
        },
        {
          name: "优惠券",
          type: "accountManage",
          componentType: "",
          method: "",
        },
        {
          name: "发票",
          type: "accountManage",
          componentType: "",
          method: "",
        },
        {
          name: "入驻记录",
          type: "accountManage",
          componentType: "",
          method: "",
        },
      ],
    };
  },
  methods: {
    ...mapActions(['signOut'])
  }
  // computed: {
  //   ...mapState(["userInfo"]),
  // },
};
</script>


<style lang="scss" scoped>
@import "@/common/style/common.scss";
.account {
  &-line {
    padding: 15px;
    border-bottom: 1px solid #eee;
    @include flex();
    &-name {
      width: 80px;
      display: inline-block;
    }
    &-value {
      font-size: 16px;
      font-weight: 500;
    }
    &-right {
      @include flex($jc: space-between);
      flex-wrap: nowrap;
      width: 90%;
    }
  }
}
.title {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 20px;
  color: #333;
  font-weight: 600;
  margin-bottom: 30px;
}
.logout-btn{
  margin-top: 30px;
  float:right
}
</style>
